function Dog(name) {
    this.name = name;
}



// 请把你的代码写在这条注释以下
Dog.prototype.numLegs = 4;
let beagle = new Dog("Snoopy");